home *** CD-ROM | disk | FTP | other *** search
- Path: news.Gsu.EDU!gs01jpc
- From: gs01jpc@panther.Gsu.EDU (J. Patrick Cline)
- Newsgroups: comp.lang.c++
- Subject: Floating point overflow
- Date: 19 Jan 1996 23:29:10 GMT
- Organization: Georgia State University
- Message-ID: <4dp9g6$spe@sphinx.Gsu.EDU>
- NNTP-Posting-Host: panther.gsu.edu
- X-Newsreader: TIN [version 1.2 PL2]
-
- Why would the following bit of code give me a floating point overflow
- when compiled as a Borland EasyWin target?
-
- #include <iostream.h>
-
- double someVar;
-
- void main() {
- cout << "Enter a float:";
- cin >> someVar; // Floating point error occurrs after pressing Enter
- // Works fine as a DOS app
- }
-
- Thanks,
- Patrick
-
- --
- ***************************************************
- | If Folly is any judge, the happiest man is the |
- | one who is most thoroughly deluded. |
- | --Desiderius Erasmus, The Praise of Folly |
- | |
- |**** http://www2.gsu.edu/~gs01jpc/jpcline.html ****|
-